<!DOCTYPE HTML>
<html>
<head>
    {include file="common:meta"}
</head>
<body>
<div class="page-container">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>家族成员ID</th>
                    <th>昵称</th>
                    <th>家族</th>
                    <th>总钻石</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="data" id="list" key="k"}
                <tr>
                    <td>{$k}</td>
                    <td>{$list.receive_user_id|get_uid}</td>
                    <td>{$list.receive_user_id|get_user_name}</td>
                    <td>{$list.receive_family_id|get_family_name}</td>
                    <td>{$list.flowing_num}</td>
                    <td>
                        <button class="gift-info btn btn-warning btn-sm" familyId="{$list.receive_family_id}" userId="{$list.receive_user_id}" dates="{$dates}">查看详情</button>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            {$data|raw}
        </div>
    </div>
</div>
{include file="common:footer"}
<script>
    $('.gift-info').click(function(){
        layer.open({
            type: 2,
            title: ['家族成员收礼详情（' + $(this).attr('dates') + '）','font-size:18px;font-family:楷体;font-weight:700;'],
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['800px', '500px'],
            content:"/FamilyFlowingDayDetail?familyId=" + $(this).attr('familyId') + '&userId=' + $(this).attr('userId') + '&dates=' + $(this).attr('dates'),
            offset:'auto',
            scrollbar:false
        });
    });
</script>
</body>
</html>